<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddOtherTurnoverGuildHostTable extends Migration
{
    protected $connection = 'guild';

    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('guild_host_account_daily', function (Blueprint $table) {
            $table->double('msg_turnover', 1)->default(0.0)->comment('私信总流水')->after('video_turnover');
            $table->double('gift_turnover', 1)->default(0.0)->comment('普通礼物总流水')->after('video_turnover');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('guild_host_account_daily', function (Blueprint $table) {
            //
        });
    }
}
